class Product < ActiveRecord::Base
  
  belongs_to :user
  
  attr_accessor :password, :password_repeat
  attr_accessible :name, :exchange_for, :start_date, :finish_date, :image_uri
  
  validates_presence_of :name
  validates_uniqueness_of :name
  
end
